import { defineStore } from 'pinia'

export const useOllamaStore = defineStore('ollama', {
  state: () => ({
    baseUrl: '',
    connected: false,
    version: '',
    models: [],
    runningModels: []
  }),
  actions: {
    setBaseUrl(url) {
      this.baseUrl = url
    },
    setConnected(status) {
      this.connected = status
    },
    setVersion(version) {
      this.version = version
    },
    setModels(models) {
      this.models = models
    },
    setRunningModels(models) {
      this.runningModels = models
    }
  }
})